package com.ruoyi.data.domain.bo.getData;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.validate.EditGroupOne;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 分类管理业务对象 data_classification
 *
 * @author ruoyi
 * @date 2023-10-26
 */

@Data
public class GetDataDataListBo {

    /**
     * 分类名称
     */
    @NotBlank(message = "分类名称不能为空", groups = { AddGroup.class, EditGroup.class, EditGroupOne.class })
    private String classificationName;

    private Long classificationId;


    /**
     * 倒序 desc、正序 asc、随机 random（按主键来)
     */
    private String orderType = "desc";

    @NotBlank(message = "token不能为空", groups = { AddGroup.class, EditGroup.class, EditGroupOne.class })
    private String token;

    /**
     * 字段名称 data1,data2
     */
    @NotBlank(message = "字段不能为空", groups = { EditGroupOne.class })
    private String fieldName;

    @NotBlank(message = "value不能为空", groups = { EditGroupOne.class })
    private String value;
    /**
     * status 0 未读 1已读
     */
    @NotBlank(message = "status不能为空", groups = { EditGroupOne.class })
    private String status;

    /**
     * eq 精确
     * like 模糊
     */
    private String likeType;


}
